package com.zhiyou100.test.test02.homework;

import java.io.Serializable;

/**
 * @author yang
 * @className Student
 * @packageName com.zhiyou100.test.test02.homework
 * @Description TODO 学生 实体类
 * @date 2020-08-07 22:31
 */
public class Student implements Serializable {
    private Integer sid;
    private String sname;
    private String sex;
    private Integer sage;
    private Double score;

    public Student() {
    }

    public Student(String sname, String sex, Integer sage, Double score) {
        this.sname = sname;
        this.sex = sex;
        this.sage = sage;
        this.score = score;
    }

    public Student(Integer sid, String sname, String sex, Integer sage, Double score) {
        this.sid = sid;
        this.sname = sname;
        this.sex = sex;
        this.sage = sage;
        this.score = score;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getSage() {
        return sage;
    }

    public void setSage(Integer sage) {
        this.sage = sage;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                ", sex='" + sex + '\'' +
                ", sage=" + sage +
                ", score=" + score +
                '}';
    }
}
